package pa2.node;

import java.rmi.RemoteException;
import java.util.Map;

import pa2.util.EqualityCompare;

public class SimpleNodeFactory implements NodeFactory {

	public <K extends EqualityCompare<K>, V, M extends Map<K,V>>
		Node<K,V,M> createNode(K key, NodeData<K,V,M> data) throws RemoteException {
		return new SimpleNode<K,V,M>(key, data);
	}
	
	public <K extends EqualityCompare<K>, V, M extends Map<K,V>>
		void destroyNode(Node<K,V,M> node) throws RemoteException {
		//TODO destroy node
	}
}
